determinant of a 3 by 3 matrix